Skip to main content

libURLSetExpect100

Type

command

Summary

Allows for a '100 Continue' header response to be received from the server

Syntax

libURLSetExpect100 <limit>

Description

When called, subsequent POST requests will add an "Expect: 100-continue" field to the http headers when the data to be posted excedes the limit. The data won't be written to the socket until a 100 Continue response is received from the server.

This can be useful when posting large amounts of data and where there is a risk of the POST failing (because of failed authentication, or whatever). For example, if authentication is required, the data won't be written until after the authentication has cleared.

Important

The libURLSetExpect100 command is part of the Internet library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "Internet" script library is selected.

Parameters

NameTypeDescription

limit

A number of bytes.

command: post

function: libURLMultipartFormData, libURLFormData

glossary: main stack, handler, Standalone Application Settings, message, group, standalone application, keyword, command, application, LiveCode custom library

keyword: URL

library: Internet library, library

message: startup, openBackground, preOpenStack, openStack, preOpenCard

Compatibility and Support

Introduced

LiveCode 2.5

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?